package homework22;

public class Left extends Component {
    private String name;

    public Left(String name) {
        this.name = name;
    }

    @Override
    public void operation() {
        System.out.println("对文件" + name + "处理...");//具体业务方法的实现
    }

    @Override
    public void remove(Component component) {
        System.out.println("删除文件...");//异常信息处理或提示
    }

    @Override
    public void add(Component component) {
        System.out.println("添加新文件...");//异常信息处理或提示
    }

    @Override
    public Component getChild(int i) {
        return null;//异常信息处理或提示
    }
}
